package com.dylhsh.fkglxt.controller;

import com.dylhsh.fkglxt.service.*;
import com.dylhsh.fkglxt.model.*;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AddController {
    @Reference
    private userService userService;
    @Reference
    private lfdjbService lfdjbService;
    @RequestMapping("addUser")
    public boolean addUser(User user){
        if (userService.insUser(user)!=0){
            return true;
        }
        return false;
    }

    @RequestMapping("addLfdjb")
    public boolean addLfdjb(Lfdjb lfdjb){
        if (lfdjbService.insLfdjb(lfdjb)!=0)
            return true;
        return false;
    }
}
